package testString;

public class StringMethod2 {
	public static void main(String[] args) {
		String str1="lucky boy";
		String str2="LUCKY BOY";
		p(str1.compareTo(str2));
		p(str1.compareToIgnoreCase(str2));
		p(str1.contains("oy"));
		String str3=String.valueOf('a');
		char a[]={'j','a','v','a'};
		String str4=String.valueOf(a);
		String str5=String.valueOf(a, 2, 2);
		p(str3);
		p(str4);
		p(str5);
	}

	private static void p(Object o) {
        System.out.println(o);		
	}

}
